﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AI_BOTS
{
	public static class BattleStyle
	{
		public enum BATTLE_STYLES
		{
			RAGE,
			DEFENSE,
			UNKNOWN
		}

		public static BATTLE_STYLES DetectBattleStyle(PlanetWars pw)
		{	
			//if(IsRage(pw))
			//    return BATTLE_STYLES.RAGE;

			return BATTLE_STYLES.UNKNOWN;
		}

		private static bool IsRage(PlanetWars pw)
		{
			int enemyFleets = 0;
			int enemyShips = 0;

			foreach(Planet p in pw.EnemyPlanets())
				enemyShips += p.NumShips;

			foreach(Fleet f in pw.EnemyFleets())
				enemyFleets += f.NumShips;

			if(enemyFleets >= enemyShips && pw.EnemyPlanets().Count <= 2)
				return true;
			
			return false;				
		}
		private static bool IsDefense(PlanetWars pw)
		{
			return false;
		}
		private static bool IsUnknown(PlanetWars pw)
		{
			return false;
		}
	}
}
